/*********************************************************************************
  *FileName:  nsuc16xx_systick.h
  *Version:  V1.0
  *Date: 2023-04-19
**********************************************************************************/

#ifndef  __nsuc16xx_systick_H__
#define  __nsuc16xx_systick_H__

/***************************************Includes***********************************/
#include "nsuc16x0.h"


/***************************************Macros***********************************/
#define Systick_CoclkSource_STCLK       ((uint8_t)0x00)
#define Systick_CoclkSource_FCLK        ((uint8_t)0x01)
/***************************************Variables***********************************/
typedef struct
{
    uint32_t SysTick_CurrentValue;
    uint32_t SysTick_ReLoadValue;
    uint8_t SysTick_CoclkSource;
} SysTick_InitTypeDef;


/***************************************Functions***********************************/
void SysTick_Init(SysTick_InitTypeDef *SysTick_InitStruct);
void SysTick_ITConfig(FunctionalState NewState);
void SysTick_CounterCmd(FunctionalState NewState);
uint32_t SysTick_GetCount(void);
void SysTick_SetReload(uint32_t ReLoadValue);
uint32_t SysTick_GetReload(void);

#endif
/* [] END OF nsuc16xx_systick.h */
